<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- qwwfilechooser.cpp -->
<head>
  <title>Qt 1.0: QwwFileChooser Class Reference</title>
  <link href="classic-4.6.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">wwWidgets Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230">
<a href="http://www.wysota.eu.org/wwwidgets"><img src="images/ww-logo.png" align="right" width="137" height="41" border="0" /></a>
</td></tr></table><h1 class="title">QwwFileChooser Class Reference</h1>
<p>A widget for choosing a file or directory from the file system <a href="#details">More...</a></p>
<pre> #include &lt;QwwFileChooser&gt;</pre><p>Inherits <a href="qwwbuttonlineedit.html">QwwButtonLineEdit</a>.</p>
<ul>
<li><a href="qwwfilechooser-members.html">List of all members, including inherited members</a></li>
</ul>
<hr />
<a name="properties"></a>
<h2>Properties</h2>
<p><table class="propsummary" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td width="45%" valign="top"><ul>
<li><div class="fn"><b><a href="qwwfilechooser.html#acceptMode-prop">acceptMode</a></b> : QFileDialog::AcceptMode</div></li>
<li><div class="fn"><b><a href="qwwfilechooser.html#completionMode-prop">completionMode</a></b> : QCompleter::CompletionMode</div></li>
<li><div class="fn"><b><a href="qwwfilechooser.html#fileMode-prop">fileMode</a></b> : QFileDialog::FileMode</div></li>
</ul></td><td valign="top"><ul>
<li><div class="fn"><b><a href="qwwfilechooser.html#filter-prop">filter</a></b> : QString</div></li>
<li><div class="fn"><b><a href="qwwfilechooser.html#usesNativeFileDialog-prop">usesNativeFileDialog</a></b> : bool</div></li>
</ul>
</td></tr>
</table></p>
<ul>
<li><div bar="2" class="fn"></div>7 properties inherited from <a href="qwwbuttonlineedit.html#properties">QwwButtonLineEdit</a></li>
<li><div bar="2" class="fn"></div>17 properties inherited from <a href="http://qt.nokia.com/doc/4.7/qlineedit.html#properties">QLineEdit</a></li>
<li><div bar="2" class="fn"></div>58 properties inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#properties">QWidget</a></li>
<li><div bar="2" class="fn"></div>1 property inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#properties">QObject</a></li>
</ul>
<hr />
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qwwfilechooser.html#QwwFileChooser">QwwFileChooser</a></b> ( QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QFileDialog::AcceptMode </td><td class="memItemRight" valign="bottom"><b><a href="qwwfilechooser.html#acceptMode-prop">acceptMode</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QCompleter::CompletionMode </td><td class="memItemRight" valign="bottom"><b><a href="qwwfilechooser.html#completionMode-prop">completionMode</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QFileDialog::FileMode </td><td class="memItemRight" valign="bottom"><b><a href="qwwfilechooser.html#fileMode-prop">fileMode</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const QString &amp; </td><td class="memItemRight" valign="bottom"><b><a href="qwwfilechooser.html#filter-prop">filter</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwfilechooser.html#acceptMode-prop">setAcceptMode</a></b> ( QFileDialog::AcceptMode <i>m</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwfilechooser.html#completionMode-prop">setCompletionMode</a></b> ( QCompleter::CompletionMode <i>m</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwfilechooser.html#fileMode-prop">setFileMode</a></b> ( QFileDialog::FileMode <i>m</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwfilechooser.html#filter-prop">setFilter</a></b> ( const QString &amp; <i>f</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="qwwfilechooser.html#setModel">setModel</a></b> ( QAbstractItemModel * <i>m</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwfilechooser.html#usesNativeFileDialog-prop">setUsesNativeFileDialog</a></b> ( bool <i>n</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qwwfilechooser.html#usesNativeFileDialog-prop">usesNativeFileDialog</a></b> () const</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>9 public functions inherited from <a href="qwwbuttonlineedit.html#public-functions">QwwButtonLineEdit</a></li>
<li><div bar="2" class="fn"></div>53 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qlineedit.html#public-functions">QLineEdit</a></li>
<li><div bar="2" class="fn"></div>217 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#public-functions">QWidget</a></li>
<li><div bar="2" class="fn"></div>13 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qpaintdevice.html#public-functions">QPaintDevice</a></li>
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-functions">QObject</a></li>
</ul>
<hr />
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qwwfilechooser.html#chooseFile">chooseFile</a></b> ()</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>6 public slots inherited from <a href="qwwbuttonlineedit.html#public-slots">QwwButtonLineEdit</a></li>
<li><div bar="2" class="fn"></div>8 public slots inherited from <a href="http://qt.nokia.com/doc/4.7/qlineedit.html#public-slots">QLineEdit</a></li>
<li><div bar="2" class="fn"></div>19 public slots inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#public-slots">QWidget</a></li>
<li><div bar="2" class="fn"></div>1 public slot inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-slots">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>2 signals inherited from <a href="qwwbuttonlineedit.html#signals">QwwButtonLineEdit</a></li>
<li><div class="fn"></div>6 signals inherited from <a href="http://qt.nokia.com/doc/4.7/qlineedit.html#signals">QLineEdit</a></li>
<li><div class="fn"></div>1 signal inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#signals">QWidget</a></li>
<li><div class="fn"></div>1 signal inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#signals">QObject</a></li>
<li><div class="fn"></div>1 public type inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#public-variables">QObject</a></li>
<li><div class="fn"></div>4 static public members inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#static-public-members">QWidget</a></li>
<li><div class="fn"></div>4 static public members inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"></div>2 protected functions inherited from <a href="qwwbuttonlineedit.html#protected-functions">QwwButtonLineEdit</a></li>
<li><div class="fn"></div>17 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qlineedit.html#protected-functions">QLineEdit</a></li>
<li><div class="fn"></div>37 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#protected-functions">QWidget</a></li>
<li><div class="fn"></div>1 protected function inherited from <a href="http://qt.nokia.com/doc/4.7/qpaintdevice.html#protected-functions">QPaintDevice</a></li>
<li><div class="fn"></div>7 protected functions inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-functions">QObject</a></li>
<li><div class="fn"></div>1 protected slot inherited from <a href="http://qt.nokia.com/doc/4.7/qwidget.html#protected-slots">QWidget</a></li>
<li><div class="fn"></div>1 protected type inherited from <a href="http://qt.nokia.com/doc/4.7/qpaintdevice.html#protected-variables">QPaintDevice</a></li>
<li><div class="fn"></div>2 protected variables inherited from <a href="http://qt.nokia.com/doc/4.7/qobject.html#protected-variables">QObject</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>A widget for choosing a file or directory from the file system</p>
<p align="center"><img src="images/qwwfilechooser.png" alt="QwwFileChooser" /></p><p>The widget is able to work in two modes - open (existing files or directories -- for loading files) and save (for saving files).</p>
<hr />
<h2>Property Documentation</h2>
<h3 class="fn"><a name="acceptMode-prop"></a>acceptMode : <a href="http://qt.nokia.com/doc/4.7/qfiledialog.html#AcceptMode-enum">QFileDialog::AcceptMode</a></h3>
<p>This property holds this property holds the current accept mode of the widget.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">QFileDialog::AcceptMode </td><td class="memItemRight" valign="bottom"><b>acceptMode</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setAcceptMode</b> ( QFileDialog::AcceptMode <i>m</i> )</td></tr>
</table>
<h3 class="fn"><a name="completionMode-prop"></a>completionMode : <a href="http://qt.nokia.com/doc/4.7/qcompleter.html#CompletionMode-enum">QCompleter::CompletionMode</a></h3>
<p>This property holds this property holds the current completion mode of the widget.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">QCompleter::CompletionMode </td><td class="memItemRight" valign="bottom"><b>completionMode</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setCompletionMode</b> ( QCompleter::CompletionMode <i>m</i> )</td></tr>
</table>
<h3 class="fn"><a name="fileMode-prop"></a>fileMode : <a href="http://qt.nokia.com/doc/4.7/qfiledialog.html#FileMode-enum">QFileDialog::FileMode</a></h3>
<p>This property holds this property holds the current file mode of the widget.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">QFileDialog::FileMode </td><td class="memItemRight" valign="bottom"><b>fileMode</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setFileMode</b> ( QFileDialog::FileMode <i>m</i> )</td></tr>
</table>
<h3 class="fn"><a name="filter-prop"></a>filter : <a href="http://qt.nokia.com/doc/4.7/qstring.html">QString</a></h3>
<p>This property holds this property holds information about the currently chosen filter.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">const QString &amp; </td><td class="memItemRight" valign="bottom"><b>filter</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setFilter</b> ( const QString &amp; <i>f</i> )</td></tr>
</table>
<h3 class="fn"><a name="usesNativeFileDialog-prop"></a>usesNativeFileDialog : bool</h3>
<p>This property holds this property holds information whether the widget uses a native file dialog for choosing files (or directories).</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b>usesNativeFileDialog</b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setUsesNativeFileDialog</b> ( bool <i>n</i> )</td></tr>
</table>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="QwwFileChooser"></a>QwwFileChooser::QwwFileChooser ( <a href="http://qt.nokia.com/doc/4.7/qwidget.html">QWidget</a> * <i>parent</i> = 0 )</h3>
<p>Constructs a file chooser with a given <i>parent</i>.</p>
<h3 class="fn"><a name="chooseFile"></a>void QwwFileChooser::chooseFile ()&nbsp;&nbsp;<tt> [slot]</tt></h3>
<p>This slot opens a file dialog for choosing one or more entries from the file system according to currently active mode.</p>
<p>See also <a href="qwwfilechooser.html#acceptMode-prop">acceptMode</a>.</p>
<h3 class="fn"><a name="setModel"></a>void QwwFileChooser::setModel ( <a href="http://qt.nokia.com/doc/4.7/qabstractitemmodel.html">QAbstractItemModel</a> * <i>m</i> )&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Sets the model used by the widget to <i>m</i>.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%" align="left">Copyright &copy; 2007-2010 Witold Wysota 
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">wwWidgets 1.0.0</div></td>
</tr></table></div></address></body>
</html>
